cssboxes: Introduce
authorBenjamin Otte <otte@redhat.com>
Fri, 15 Feb 2019 01:57:46 +0000 (02:57 +0100)
committerBenjamin Otte <otte@redhat.com>
Fri, 15 Feb 2019 05:53:22 +0000 (06:53 +0100)
commit19ffb40b27e372bcbdd3847749248c0282159b0c
treeaad8547e5f7dc65273790e9325db29a8671115f8
parent86978d2654118b2781edb6ddbf2e69c87569104a
cssboxes: Introduce

Split out the code for computing CSS boxes from given variables from the
background render code. This way, it can be shared between different
codebases.

Also, make that code completely be contained of static inline functions.
That ensures that it can be 100% inlined in cases where only parts of
the rectangle are needed (like in gtk_widget_get_width() in the future).

This will require some more patches to actually work, but those will
follow.
gtk/gtkcssboxesimplprivate.h [new file with mode: 0644]
gtk/gtkcssboxesprivate.h [new file with mode: 0644]
gtk/gtkrenderbackground.c